import { Button, Result } from 'antd'
import React from 'react'
import ProTable, { TableDropdown } from '@ant-design/pro-table'
import { columns } from './config'
import { HttpQueryCompany } from '@/services'

const CompanyPage: React.FC<{}> = () => {
    return (
        <ProTable<IT.ICompany>
            {...{
                columns,
                rowKey: 'id',
                bordered: true,
                dateFormatter: 'string',
                headerTitle: '经销商管理',
                editable: { type: 'multiple' },
                search: { labelWidth: 'auto' },
                pagination: { pageSize: 50 },
                request: async (params = {}) => await HttpQueryCompany(params),
            }}
        />
    )
}

export default CompanyPage
